# -*- coding: utf-8 -*-
# Author: qinxugao
# Date: 2017-08-28 16:27:01
#
# 重构项目的打包
import sys, csv , operator  
import os  
import glob  
import shutil
import subprocess
import traceback
import random

config = {
	#名字 项目目录 资源来源目录
	74:{'name':'乐赢德州','tarPath':'/Users/qinxugao/work/Poker515_mj/','scrPath':'/Users/qinxugao/work/Poker515'},
	75:{'name':'高手德州','tarPath':'/Users/qinxugao/work/Poker515_gs/','scrPath':'/Users/qinxugao/work/Poker515'},
	76:{'name':'欢乐大赢家','tarPath':'/Users/qinxugao/work/Poker515_DaYingJia/','scrPath':'/Users/qinxugao/work/Poker515_DaYingJia/assest',
		'removeScript':['baijiale','benchibaoma','dezhou','ponyrun','roulette','shuiguoji','shuihu','spellcardthree','zhongfabai2'],
		'removeRes':['dezhou'],
	},
	77:{'name':'欢乐大赢家','tarPath':'/Users/qinxugao/work/Poker515_DaYingJia/','scrPath':'/Users/qinxugao/work/Poker515_DaYingJia/assest',},
	78:{'name':'掌上德州扑克','tarPath':'/Users/qinxugao/work/Poker515_gs/','scrPath':'/Users/qinxugao/work/Poker515',},
	79:{'name':'德州扑克之夜','tarPath':'/Users/qinxugao/work/Poker515_mj/','scrPath':'/Users/qinxugao/work/Poker515'},
}


#
def getConfig(id):
	return config[id]

# if __name__ == "__main__":
# 	#print(getConfig(76)['name'])
# 	for c in config:
# 		print(c)
# 		cf = config[c]
# 		for k in cf:
# 			print(cf[k])

	# src = "/Users/qinxugao/work/Poker515_DaYingJia/resscr"
	# source = "/Users/qinxugao/work/Poker515_DaYingJia/resscr/res/ui"
	# des = "/Users/qinxugao/work/Poker515_DaYingJia"
	# des = os.path.normpath(des)
	# src = os.path.normpath(src)
 #    pathsrc, top = os.path.split(src) #路径    
 #    top = "/"+top 
 #    toplen = len(top)	
	# path, src_name = os.path.split(source) #取路径与名字	
	# s = path[path.find(top)+toplen:]
	# targetDir = des + s +"/"+ src_name
	# print(des)
	# print("ssss___"+s)
	# print(source)
	# print(targetDir)			

